package com.zjitc.token;

import java.time.LocalDateTime; /**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/2 15:11
 * @description:
 */
public class Token {

  private LocalDateTime createTime;
  private String uuid;
  private String token;

  public Token(LocalDateTime createTime, String token) {
    this.createTime = createTime;
    this.token = token;
  }

  public Token(String uuid, LocalDateTime now) {
    this.uuid=uuid;
    this.createTime = now;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public String getUuid() {
    return uuid;
  }

  public void setUuid(String uuid) {
    this.uuid = uuid;
  }

  public String getToken() {
    return token;
  }

  public void setToken(String token) {
    this.token = token;
  }

  @Override
  public String toString() {
    return "Token{" +
        "createTime=" + createTime +
        ", uuid=" + uuid +
        ", token='" + token + '\'' +
        '}';
  }
}
